Skip to content

Add prerelease support to release workflow#61

Merged
lollipop-onl merged 9 commits into
mainfrom
claude/add-prerelease-workflow-eNpEX
Mar 9, 2026
Merged

Add prerelease support to release workflow#61
lollipop-onl merged 9 commits into
mainfrom
claude/add-prerelease-workflow-eNpEX

Conversation

@lollipop-onl
Copy link
Copy Markdown
Collaborator

Summary

Adds support for creating prerelease versions in the release workflow. This allows publishing release candidates and other prerelease versions to npm with appropriate tags and GitHub release markers.

Changes include:

  • New prerelease input parameter (choice between empty string for stable or 'rc' for release candidate)
  • Updated version bumping logic to handle prerelease versioning using npm version prerelease or npm version pre{major|minor|patch}
  • Conditional npm publish with --tag flag for prerelease versions
  • Conditional GitHub release creation with --prerelease flag for prerelease versions
  • Applied to both regular publish and dry-run publish steps

Test plan

The release workflow can be tested by:

  1. Triggering the workflow with prerelease set to empty string (stable release) - should behave as before
  2. Triggering the workflow with prerelease set to 'rc' - should create rc-tagged versions and publish with appropriate npm and GitHub release tags
  3. Verifying dry-run mode works correctly with prerelease versions

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 9, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 91.14% 1720 / 1887
🔵 Statements 91.27% 1788 / 1959
🔵 Functions 89.83% 371 / 413
🔵 Branches 74.37% 778 / 1046
File CoverageNo changed files found.
Generated in workflow #315 for commit 2f9b2b9 by the Vitest Coverage Report Action

claude added 9 commits March 9, 2026 02:21
When promoting from rc to stable, release notes now cover all changes
since the last stable version, not just since the last rc.

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H
…version types

Instead of a separate prerelease input, add preminor, premajor, and
prerelease directly to the newversion options. This maps directly to
npm version commands and avoids confusion about input combinations.

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H
… options

Simpler UI: newversion stays as patch/minor/major, and a separate
checkbox controls whether to release as rc. When checked and the
current version is already an rc, it bumps the rc number instead.

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H
Merge publish and release note steps by using DRY_RUN flag
to conditionally add --dry-run or switch to preview mode,
eliminating step duplication.

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H
- PRERELEASE and DRY_RUN → workflow-level env
- NEW_TAG, PREVIOUS_TAG, PREVIOUS_STABLE_TAG → publish job-level env
- Remove redundant step-level env definitions

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H
All input-derived env vars are now consistently defined at workflow
level: NEW_VERSION_TYPE, PRERELEASE, DRY_RUN.

https://claude.ai/code/session_01ULoEJZPc1AfKpew9Pz8w9H
@lollipop-onl lollipop-onl force-pushed the claude/add-prerelease-workflow-eNpEX branch from e07b6ab to 2f9b2b9 Compare March 9, 2026 02:21
@lollipop-onl lollipop-onl merged commit ff3f697 into main Mar 9, 2026
7 checks passed
@lollipop-onl lollipop-onl deleted the claude/add-prerelease-workflow-eNpEX branch March 9, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants